package com.sc.design.observable;

/**
 * @author sc
 * Created on  2017/12/6
 */
public class Client {
    public static void main(String[] args) {
        Observer lisi =  new LiSi();
        Observer xiaosan  = new Xiaosan();

        Hanfeizi hanfeizi = new Hanfeizi();
        hanfeizi.addObserver(lisi);
        hanfeizi.addObserver(xiaosan);

        hanfeizi.eat();
        hanfeizi.haveFun();
    }
}
